<?php 
    class CommonControl extends Control
    {
        function __init(){
        $this->checkLogin();//验证登录状态
    }

    public function checkLogin(){
        if(!isset($_SESSION['admin']['aid'])){
            go("login/login");
            exit;
        }
    }



    }
 ?>